package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zs = new Student("张宛婷", 21, "广安", "jsd2302", "001");
        zs.eat();
        zs.sayHi();
        zs.sleep();
        zs.study();
        Doctor li = new Doctor("詹姆斯", 38, "成都", "口腔医生");
        li.eat();
        li.sayHi();
        li.sleep();
        li.cut();
        Teacher ww = new Teacher("王大侠", 40, "北京", 8000.8);
        ww.eat();
        ww.sayHi();
        ww.sleep();
        ww.teach();

    }
}
